package com.systemsjr.jrenterprise.invoice;

import com.systemsjr.jrenterprise.invoice.vo.InvoiceVO;
import com.systemsjr.jrenterprise.utils.ServiceUtils;
import com.systemsjr.jrlib.richclient.BaseItemControl;

public class InvoiceControl extends BaseItemControl<InvoiceVO> {

	@Override
	public void handleDeleteItem(InvoiceVO item) {
		
		ServiceUtils.getInvoiceService().delete(item);
		
	}

	@Override
	public InvoiceVO handleNewItem() {
		return ServiceUtils.createDefaultInvoice();
	}

	@Override
	public InvoiceVO handleSaveItem(InvoiceVO item) {
		return ServiceUtils.getInvoiceService().save(item);
	}

}
